From aa5c6a2bbb967e47b1fe664f04d55cb77ee93850 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 25 Oct 2022 07:24:27 +0000 Subject: [PATCH] feat(managedidentities): update the api #### managedidentities:v1alpha1 The following keys were added: - resources.projects.resources.locations.resources.global.resources.domains.methods.checkMigrationPermission (Total Keys: 12) - resources.projects.resources.locations.resources.global.resources.domains.methods.disableMigration (Total Keys: 12) - resources.projects.resources.locations.resources.global.resources.domains.methods.enableMigration (Total Keys: 12) - schemas.CheckMigrationPermissionRequest (Total Keys: 2) - schemas.CheckMigrationPermissionResponse (Total Keys: 5) - schemas.DisableMigrationRequest (Total Keys: 2) - schemas.EnableMigrationRequest (Total Keys: 4) - schemas.OnPremDomainDetails (Total Keys: 4) - schemas.OnPremDomainSIDDetails (Total Keys: 4) --- ...a1.projects.locations.global_.domains.html | 128 ++++++++++++ .../documents/managedidentities.v1.json | 2 +- .../documents/managedidentities.v1alpha1.json | 182 +++++++++++++++++- .../documents/managedidentities.v1beta1.json | 2 +- 4 files changed, 311 insertions(+), 3 deletions(-) diff --git a/docs/dyn/managedidentities_v1alpha1.projects.locations.global_.domains.html b/docs/dyn/managedidentities_v1alpha1.projects.locations.global_.domains.html index d3ade0946a4..0600e676a9f 100644 --- a/docs/dyn/managedidentities_v1alpha1.projects.locations.global_.domains.html +++ b/docs/dyn/managedidentities_v1alpha1.projects.locations.global_.domains.html @@ -87,6 +87,9 @@

Instance Methods

attachTrust(name, body=None, x__xgafv=None)

Adds AD trust in a given domain. Operation

+

+ checkMigrationPermission(domain, body=None, x__xgafv=None)

+

AuditMigration API gets the current state of DomainMigration

close()

Close httplib2 connections.

@@ -99,6 +102,12 @@

Instance Methods

detachTrust(name, body=None, x__xgafv=None)

Removes identified trust. Operation

+

+ disableMigration(domain, body=None, x__xgafv=None)

+

Disable Domain Migration

+

+ enableMigration(domain, body=None, x__xgafv=None)

+

Enable Domain Migration

extendSchema(domain, body=None, x__xgafv=None)

Extend Schema for Domain

@@ -198,6 +207,37 @@

Method Details

} +
+ checkMigrationPermission(domain, body=None, x__xgafv=None) +
AuditMigration API gets the current state of DomainMigration
+
+Args:
+  domain: string, Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # CheckMigrationPermissionRequest is the request message for CheckMigrationPermission method.
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # CheckMigrationPermissionResponse is the response message for CheckMigrationPermission method.
+  "onpremDomains": [ # The state of SID filtering of all the domains which has trust established.
+    { # OnPremDomainDetails is the message which contains details of on-prem domain which is trusted and needs to be migrated.
+      "name": "A String", # FQDN of the on-prem domain being migrated.
+      "sidFilteringState": "A String", # Current SID filtering state.
+    },
+  ],
+  "state": "A String", # The state of DomainMigration.
+}
+
+
close()
Close httplib2 connections.
@@ -371,6 +411,94 @@

Method Details

}
+
+ disableMigration(domain, body=None, x__xgafv=None) +
Disable Domain Migration
+
+Args:
+  domain: string, Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # DisableMigrationRequest is the request message for DisableMigration method.
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # 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.
+  "error": { # 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). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # 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.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+ +
+ enableMigration(domain, body=None, x__xgafv=None) +
Enable Domain Migration
+
+Args:
+  domain: string, Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}` (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # EnableMigrationRequest is the request message for EnableMigration method.
+  "migratingDomains": [ # Required. List of the on-prem domains to be migrated.
+    { # OnPremDomainDetails is the message which contains details of on-prem domain which is trusted and needs to be migrated.
+      "disableSidFiltering": True or False, # Optional. Option to disable SID filtering.
+      "domainName": "A String", # Required. FQDN of the on-prem domain being migrated.
+    },
+  ],
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # This resource represents a long-running operation that is the result of a network API call.
+  "done": True or False, # 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.
+  "error": { # 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). # The error result of the operation in case of failure or cancellation.
+    "code": 42, # The status code, which should be an enum value of google.rpc.Code.
+    "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
+      {
+        "a_key": "", # Properties of the object. Contains field @type with type URL.
+      },
+    ],
+    "message": "A String", # 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.
+  },
+  "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+  "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
+  "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
+    "a_key": "", # Properties of the object. Contains field @type with type URL.
+  },
+}
+
+
extendSchema(domain, body=None, x__xgafv=None)
Extend Schema for Domain
diff --git a/googleapiclient/discovery_cache/documents/managedidentities.v1.json b/googleapiclient/discovery_cache/documents/managedidentities.v1.json
index 9ad54fd64a7..2bc6973d6be 100644
--- a/googleapiclient/discovery_cache/documents/managedidentities.v1.json
+++ b/googleapiclient/discovery_cache/documents/managedidentities.v1.json
@@ -1403,7 +1403,7 @@
       }
     }
   },
-  "revision": "20220826",
+  "revision": "20220926",
   "rootUrl": "https://managedidentities.googleapis.com/",
   "schemas": {
     "AttachTrustRequest": {
diff --git a/googleapiclient/discovery_cache/documents/managedidentities.v1alpha1.json b/googleapiclient/discovery_cache/documents/managedidentities.v1alpha1.json
index 67847040ccc..74be1b7ae65 100644
--- a/googleapiclient/discovery_cache/documents/managedidentities.v1alpha1.json
+++ b/googleapiclient/discovery_cache/documents/managedidentities.v1alpha1.json
@@ -209,6 +209,34 @@
                         "https://www.googleapis.com/auth/cloud-platform"
                       ]
                     },
+                    "checkMigrationPermission": {
+                      "description": "AuditMigration API gets the current state of DomainMigration",
+                      "flatPath": "v1alpha1/projects/{projectsId}/locations/global/domains/{domainsId}:checkMigrationPermission",
+                      "httpMethod": "POST",
+                      "id": "managedidentities.projects.locations.global.domains.checkMigrationPermission",
+                      "parameterOrder": [
+                        "domain"
+                      ],
+                      "parameters": {
+                        "domain": {
+                          "description": "Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}`",
+                          "location": "path",
+                          "pattern": "^projects/[^/]+/locations/global/domains/[^/]+$",
+                          "required": true,
+                          "type": "string"
+                        }
+                      },
+                      "path": "v1alpha1/{+domain}:checkMigrationPermission",
+                      "request": {
+                        "$ref": "CheckMigrationPermissionRequest"
+                      },
+                      "response": {
+                        "$ref": "CheckMigrationPermissionResponse"
+                      },
+                      "scopes": [
+                        "https://www.googleapis.com/auth/cloud-platform"
+                      ]
+                    },
                     "create": {
                       "description": "Creates a Microsoft AD Domain in a given project. Operation",
                       "flatPath": "v1alpha1/projects/{projectsId}/locations/global/domains",
@@ -295,6 +323,62 @@
                         "https://www.googleapis.com/auth/cloud-platform"
                       ]
                     },
+                    "disableMigration": {
+                      "description": "Disable Domain Migration",
+                      "flatPath": "v1alpha1/projects/{projectsId}/locations/global/domains/{domainsId}:disableMigration",
+                      "httpMethod": "POST",
+                      "id": "managedidentities.projects.locations.global.domains.disableMigration",
+                      "parameterOrder": [
+                        "domain"
+                      ],
+                      "parameters": {
+                        "domain": {
+                          "description": "Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}`",
+                          "location": "path",
+                          "pattern": "^projects/[^/]+/locations/global/domains/[^/]+$",
+                          "required": true,
+                          "type": "string"
+                        }
+                      },
+                      "path": "v1alpha1/{+domain}:disableMigration",
+                      "request": {
+                        "$ref": "DisableMigrationRequest"
+                      },
+                      "response": {
+                        "$ref": "Operation"
+                      },
+                      "scopes": [
+                        "https://www.googleapis.com/auth/cloud-platform"
+                      ]
+                    },
+                    "enableMigration": {
+                      "description": "Enable Domain Migration",
+                      "flatPath": "v1alpha1/projects/{projectsId}/locations/global/domains/{domainsId}:enableMigration",
+                      "httpMethod": "POST",
+                      "id": "managedidentities.projects.locations.global.domains.enableMigration",
+                      "parameterOrder": [
+                        "domain"
+                      ],
+                      "parameters": {
+                        "domain": {
+                          "description": "Required. The domain resource name using the form: `projects/{project_id}/locations/global/domains/{domain_name}`",
+                          "location": "path",
+                          "pattern": "^projects/[^/]+/locations/global/domains/[^/]+$",
+                          "required": true,
+                          "type": "string"
+                        }
+                      },
+                      "path": "v1alpha1/{+domain}:enableMigration",
+                      "request": {
+                        "$ref": "EnableMigrationRequest"
+                      },
+                      "response": {
+                        "$ref": "Operation"
+                      },
+                      "scopes": [
+                        "https://www.googleapis.com/auth/cloud-platform"
+                      ]
+                    },
                     "extendSchema": {
                       "description": "Extend Schema for Domain",
                       "flatPath": "v1alpha1/projects/{projectsId}/locations/global/domains/{domainsId}:extendSchema",
@@ -1403,7 +1487,7 @@
       }
     }
   },
-  "revision": "20220826",
+  "revision": "20220926",
   "rootUrl": "https://managedidentities.googleapis.com/",
   "schemas": {
     "AttachTrustRequest": {
@@ -1551,6 +1635,42 @@
       },
       "type": "object"
     },
+    "CheckMigrationPermissionRequest": {
+      "description": "CheckMigrationPermissionRequest is the request message for CheckMigrationPermission method.",
+      "id": "CheckMigrationPermissionRequest",
+      "properties": {},
+      "type": "object"
+    },
+    "CheckMigrationPermissionResponse": {
+      "description": "CheckMigrationPermissionResponse is the response message for CheckMigrationPermission method.",
+      "id": "CheckMigrationPermissionResponse",
+      "properties": {
+        "onpremDomains": {
+          "description": "The state of SID filtering of all the domains which has trust established.",
+          "items": {
+            "$ref": "OnPremDomainSIDDetails"
+          },
+          "type": "array"
+        },
+        "state": {
+          "description": "The state of DomainMigration.",
+          "enum": [
+            "STATE_UNSPECIFIED",
+            "DISABLED",
+            "ENABLED",
+            "NEEDS_MAINTENANCE"
+          ],
+          "enumDescriptions": [
+            "DomainMigration is in unspecified state.",
+            "Domain Migration is Disabled.",
+            "Domain Migration is Enabled.",
+            "Domain Migration is not in valid state."
+          ],
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
     "DailyCycle": {
       "description": "Time window specified for daily operations.",
       "id": "DailyCycle",
@@ -1618,6 +1738,12 @@
       },
       "type": "object"
     },
+    "DisableMigrationRequest": {
+      "description": "DisableMigrationRequest is the request message for DisableMigration method.",
+      "id": "DisableMigrationRequest",
+      "properties": {},
+      "type": "object"
+    },
     "Domain": {
       "description": "If the domain is being changed, it will be placed into the UPDATING state, which indicates that the resource is being reconciled. At this point, Get will reflect an intermediate state.",
       "id": "Domain",
@@ -1717,6 +1843,20 @@
       "properties": {},
       "type": "object"
     },
+    "EnableMigrationRequest": {
+      "description": "EnableMigrationRequest is the request message for EnableMigration method.",
+      "id": "EnableMigrationRequest",
+      "properties": {
+        "migratingDomains": {
+          "description": "Required. List of the on-prem domains to be migrated.",
+          "items": {
+            "$ref": "OnPremDomainDetails"
+          },
+          "type": "array"
+        }
+      },
+      "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",
@@ -2432,6 +2572,46 @@
       },
       "type": "object"
     },
+    "OnPremDomainDetails": {
+      "description": "OnPremDomainDetails is the message which contains details of on-prem domain which is trusted and needs to be migrated.",
+      "id": "OnPremDomainDetails",
+      "properties": {
+        "disableSidFiltering": {
+          "description": "Optional. Option to disable SID filtering.",
+          "type": "boolean"
+        },
+        "domainName": {
+          "description": "Required. FQDN of the on-prem domain being migrated.",
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
+    "OnPremDomainSIDDetails": {
+      "description": "OnPremDomainDetails is the message which contains details of on-prem domain which is trusted and needs to be migrated.",
+      "id": "OnPremDomainSIDDetails",
+      "properties": {
+        "name": {
+          "description": "FQDN of the on-prem domain being migrated.",
+          "type": "string"
+        },
+        "sidFilteringState": {
+          "description": "Current SID filtering state.",
+          "enum": [
+            "SID_FILTERING_STATE_UNSPECIFIED",
+            "ENABLED",
+            "DISABLED"
+          ],
+          "enumDescriptions": [
+            "SID Filtering is in unspecified state.",
+            "SID Filtering is Enabled.",
+            "SID Filtering is Disabled."
+          ],
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
     "Operation": {
       "description": "This resource represents a long-running operation that is the result of a network API call.",
       "id": "Operation",
diff --git a/googleapiclient/discovery_cache/documents/managedidentities.v1beta1.json b/googleapiclient/discovery_cache/documents/managedidentities.v1beta1.json
index 9e12dce1d7b..29a7e66277e 100644
--- a/googleapiclient/discovery_cache/documents/managedidentities.v1beta1.json
+++ b/googleapiclient/discovery_cache/documents/managedidentities.v1beta1.json
@@ -1487,7 +1487,7 @@
       }
     }
   },
-  "revision": "20220826",
+  "revision": "20220926",
   "rootUrl": "https://managedidentities.googleapis.com/",
   "schemas": {
     "AttachTrustRequest": {