diff --git a/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/README.md b/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/README.md
index 207b823435e..ead13f5f980 100644
--- a/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/README.md
+++ b/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
*
* {@code GoogleMarketingPlatformAdminAPI marketingplatformadmin = new GoogleMarketingPlatformAdminAPI(...);}
- * {@code GoogleMarketingPlatformAdminAPI.AnalyticsAccountLinks.List request = marketingplatformadmin.analyticsAccountLinks().list(parameters ...)}
+ * {@code GoogleMarketingPlatformAdminAPI.AdminAccessBindings.List request = marketingplatformadmin.adminAccessBindings().list(parameters ...)}
*
*
* @return the resource collection
*/
- public AnalyticsAccountLinks analyticsAccountLinks() {
- return new AnalyticsAccountLinks();
+ public AdminAccessBindings adminAccessBindings() {
+ return new AdminAccessBindings();
}
/**
- * The "analyticsAccountLinks" collection of methods.
+ * The "adminAccessBindings" collection of methods.
*/
- public class AnalyticsAccountLinks {
+ public class AdminAccessBindings {
/**
- * Creates the link between the Analytics account and the Google Marketing Platform organization.
- * User needs to be an org user, and admin on the Analytics account to create the link. If the
- * account is already linked to an organization, user needs to unlink the account from the current
- * organization, then try link again.
+ * Creates an admin access binding in the specified GMP organization.
*
- * Create a request for the method "analyticsAccountLinks.create".
+ * Create a request for the method "adminAccessBindings.create".
*
* This request holds the parameters needed by the marketingplatformadmin server. After setting any
* optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
*
- * @param parent Required. The parent resource where this Analytics account link will be created. Format:
+ * @param parent Required. The parent organization, which owns this Admin Access Binding. Format:
* organizations/{org_id}
- * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.AnalyticsAccountLink}
+ * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.AdminAccessBinding}
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.marketingplatformadmin.v1alpha.model.AnalyticsAccountLink content) throws java.io.IOException {
+ public Create create(java.lang.String parent, com.google.api.services.marketingplatformadmin.v1alpha.model.AdminAccessBinding content) throws java.io.IOException {
Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class Create extends GoogleMarketingPlatformAdminAPIRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor. * - * @param name Required. The name of the Analytics account link to delete. Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + * @param name Required. The name of the AdminAccessBinding to retrieve. Format: + * organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} * @since 1.13 */ - protected Delete(java.lang.String name) { - super(GoogleMarketingPlatformAdminAPI.this, "DELETE", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.Empty.class); + protected Get(java.lang.String name) { + super(GoogleMarketingPlatformAdminAPI.this, "GET", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.AdminAccessBinding.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/analyticsAccountLinks/[^/]+$"); + "^organizations/[^/]+/adminAccessBindings/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the Analytics account link to delete. Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + * Required. The name of the AdminAccessBinding to retrieve. Format: + * organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the Analytics account link to delete. Format: - organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + /** Required. The name of the AdminAccessBinding to retrieve. Format: + organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} */ public java.lang.String getName() { return name; } /** - * Required. The name of the Analytics account link to delete. Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + * Required. The name of the AdminAccessBinding to retrieve. Format: + * organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} */ - public Delete setName(java.lang.String name) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^organizations/[^/]+/analyticsAccountLinks/[^/]+$"); + "^organizations/[^/]+/adminAccessBindings/[^/]+$"); } this.name = name; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Lists the Google Analytics accounts link to the specified Google Marketing Platform organization. + * Returns a list of admin access bindings in the specified GMP organization. * - * Create a request for the method "analyticsAccountLinks.list". + * Create a request for the method "adminAccessBindings.list". * * This request holds the parameters needed by the marketingplatformadmin server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent organization, which owns this collection of Analytics account links. Format: + * @param parent Required. The parent organization, which owns this collection of Admin Access Bindings. Format: * organizations/{org_id} * @return the request */ @@ -1061,18 +1061,17 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends GoogleMarketingPlatformAdminAPIRequest{@link SetPropertyServiceLevel#initialize(com.google.api.clien - * t.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.
+ * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
* - * @param analyticsAccountLink Required. The parent AnalyticsAccountLink scope where this property is in. Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.SetPropertyServiceLevelRequest} + * @param name Identifier. The resource name of this AdminAccessBinding. Format: + * organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: + * "organizations/123abc/adminAccessBindings/456def" + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.AdminAccessBinding} * @since 1.13 */ - protected SetPropertyServiceLevel(java.lang.String analyticsAccountLink, com.google.api.services.marketingplatformadmin.v1alpha.model.SetPropertyServiceLevelRequest content) { - super(GoogleMarketingPlatformAdminAPI.this, "POST", REST_PATH, content, com.google.api.services.marketingplatformadmin.v1alpha.model.SetPropertyServiceLevelResponse.class); - this.analyticsAccountLink = com.google.api.client.util.Preconditions.checkNotNull(analyticsAccountLink, "Required parameter analyticsAccountLink must be specified."); + protected Patch(java.lang.String name, com.google.api.services.marketingplatformadmin.v1alpha.model.AdminAccessBinding content) { + super(GoogleMarketingPlatformAdminAPI.this, "PATCH", REST_PATH, content, com.google.api.services.marketingplatformadmin.v1alpha.model.AdminAccessBinding.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ANALYTICS_ACCOUNT_LINK_PATTERN.matcher(analyticsAccountLink).matches(), - "Parameter analyticsAccountLink must conform to the pattern " + - "^organizations/[^/]+/analyticsAccountLinks/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/adminAccessBindings/[^/]+$"); } } @Override - public SetPropertyServiceLevel set$Xgafv(java.lang.String $Xgafv) { - return (SetPropertyServiceLevel) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public SetPropertyServiceLevel setAccessToken(java.lang.String accessToken) { - return (SetPropertyServiceLevel) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public SetPropertyServiceLevel setAlt(java.lang.String alt) { - return (SetPropertyServiceLevel) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public SetPropertyServiceLevel setCallback(java.lang.String callback) { - return (SetPropertyServiceLevel) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public SetPropertyServiceLevel setFields(java.lang.String fields) { - return (SetPropertyServiceLevel) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public SetPropertyServiceLevel setKey(java.lang.String key) { - return (SetPropertyServiceLevel) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public SetPropertyServiceLevel setOauthToken(java.lang.String oauthToken) { - return (SetPropertyServiceLevel) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public SetPropertyServiceLevel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetPropertyServiceLevel) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public SetPropertyServiceLevel setQuotaUser(java.lang.String quotaUser) { - return (SetPropertyServiceLevel) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public SetPropertyServiceLevel setUploadType(java.lang.String uploadType) { - return (SetPropertyServiceLevel) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public SetPropertyServiceLevel setUploadProtocol(java.lang.String uploadProtocol) { - return (SetPropertyServiceLevel) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Required. The parent AnalyticsAccountLink scope where this property is in. Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + * Identifier. The resource name of this AdminAccessBinding. Format: + * organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: + * "organizations/123abc/adminAccessBindings/456def" */ @com.google.api.client.util.Key - private java.lang.String analyticsAccountLink; + private java.lang.String name; - /** Required. The parent AnalyticsAccountLink scope where this property is in. Format: - organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + /** Identifier. The resource name of this AdminAccessBinding. Format: + organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: + "organizations/123abc/adminAccessBindings/456def" */ - public java.lang.String getAnalyticsAccountLink() { - return analyticsAccountLink; + public java.lang.String getName() { + return name; } /** - * Required. The parent AnalyticsAccountLink scope where this property is in. Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + * Identifier. The resource name of this AdminAccessBinding. Format: + * organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: + * "organizations/123abc/adminAccessBindings/456def" */ - public SetPropertyServiceLevel setAnalyticsAccountLink(java.lang.String analyticsAccountLink) { + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ANALYTICS_ACCOUNT_LINK_PATTERN.matcher(analyticsAccountLink).matches(), - "Parameter analyticsAccountLink must conform to the pattern " + - "^organizations/[^/]+/analyticsAccountLinks/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/adminAccessBindings/[^/]+$"); } - this.analyticsAccountLink = analyticsAccountLink; + this.name = name; + return this; + } + + /** + * Required. The list of fields to update. Field names must be in snake case (for example, + * "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use + * one path with the string "*" to match all fields. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to update. Field names must be in snake case (for example, + "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path + with the string "*" to match all fields. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Required. The list of fields to update. Field names must be in snake case (for example, + * "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use + * one path with the string "*" to match all fields. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public SetPropertyServiceLevel set(String parameterName, Object value) { - return (SetPropertyServiceLevel) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } } + /** + * An accessor for creating requests from the AnalyticsAccountLinks collection. + * + *The typical use is:
+ *
+ * {@code GoogleMarketingPlatformAdminAPI marketingplatformadmin = new GoogleMarketingPlatformAdminAPI(...);}
+ * {@code GoogleMarketingPlatformAdminAPI.AnalyticsAccountLinks.List request = marketingplatformadmin.analyticsAccountLinks().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AnalyticsAccountLinks analyticsAccountLinks() {
+ return new AnalyticsAccountLinks();
+ }
+
+ /**
+ * The "analyticsAccountLinks" collection of methods.
+ */
+ public class AnalyticsAccountLinks {
+
+ /**
+ * Creates the link between the Analytics account and the Google Marketing Platform organization.
+ * User needs to be an org user, and admin on the Analytics account to create the link. If the
+ * account is already linked to an organization, user needs to unlink the account from the current
+ * organization, then try link again.
+ *
+ * Create a request for the method "analyticsAccountLinks.create".
+ *
+ * This request holds the parameters needed by the marketingplatformadmin server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent resource where this Analytics account link will be created. Format:
+ * organizations/{org_id}
+ * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.AnalyticsAccountLink}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.marketingplatformadmin.v1alpha.model.AnalyticsAccountLink content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends GoogleMarketingPlatformAdminAPIRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource where this Analytics account link will be created. Format: + * organizations/{org_id} + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.AnalyticsAccountLink} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.marketingplatformadmin.v1alpha.model.AnalyticsAccountLink content) { + super(GoogleMarketingPlatformAdminAPI.this, "POST", REST_PATH, content, com.google.api.services.marketingplatformadmin.v1alpha.model.AnalyticsAccountLink.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this Analytics account link will be created. Format: + * organizations/{org_id} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this Analytics account link will be created. Format: + organizations/{org_id} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this Analytics account link will be created. Format: + * organizations/{org_id} + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing + * Platform organization. User needs to be an org user, and admin on the Analytics account in order + * to delete the link. + * + * Create a request for the method "analyticsAccountLinks.delete". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Analytics account link to delete. Format: + * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends GoogleMarketingPlatformAdminAPIRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the Analytics account link to delete. Format: + * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(GoogleMarketingPlatformAdminAPI.this, "DELETE", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/analyticsAccountLinks/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Analytics account link to delete. Format: + * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Analytics account link to delete. Format: + organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Analytics account link to delete. Format: + * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/analyticsAccountLinks/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Lists the Google Analytics accounts link to the specified Google Marketing Platform organization. + * + * Create a request for the method "analyticsAccountLinks.list". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent organization, which owns this collection of Analytics account links. Format: + * organizations/{org_id} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends GoogleMarketingPlatformAdminAPIRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent organization, which owns this collection of Analytics account links. Format: + * organizations/{org_id} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(GoogleMarketingPlatformAdminAPI.this, "GET", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.ListAnalyticsAccountLinksResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent organization, which owns this collection of Analytics account links. + * Format: organizations/{org_id} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent organization, which owns this collection of Analytics account links. Format: + organizations/{org_id} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent organization, which owns this collection of Analytics account links. + * Format: organizations/{org_id} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The maximum number of Analytics account links to return in one call. The + * service may return fewer than this value. If unspecified, at most 50 Analytics account + * links will be returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of Analytics account links to return in one call. The service may + return fewer than this value. If unspecified, at most 50 Analytics account links will be returned. + The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of Analytics account links to return in one call. The + * service may return fewer than this value. If unspecified, at most 50 Analytics account + * links will be returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous ListAnalyticsAccountLinks call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListAnalyticsAccountLinks` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous ListAnalyticsAccountLinks call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListAnalyticsAccountLinks` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous ListAnalyticsAccountLinks call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListAnalyticsAccountLinks` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the service level for an Analytics property. + * + * Create a request for the method "analyticsAccountLinks.setPropertyServiceLevel". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link SetPropertyServiceLevel#execute()} method to invoke the + * remote operation. + * + * @param analyticsAccountLink Required. The parent AnalyticsAccountLink scope where this property is in. Format: + * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.SetPropertyServiceLevelRequest} + * @return the request + */ + public SetPropertyServiceLevel setPropertyServiceLevel(java.lang.String analyticsAccountLink, com.google.api.services.marketingplatformadmin.v1alpha.model.SetPropertyServiceLevelRequest content) throws java.io.IOException { + SetPropertyServiceLevel result = new SetPropertyServiceLevel(analyticsAccountLink, content); + initialize(result); + return result; + } + + public class SetPropertyServiceLevel extends GoogleMarketingPlatformAdminAPIRequest{@link SetPropertyServiceLevel#initialize(com.google.api.clien + * t.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param analyticsAccountLink Required. The parent AnalyticsAccountLink scope where this property is in. Format: + * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.SetPropertyServiceLevelRequest} + * @since 1.13 + */ + protected SetPropertyServiceLevel(java.lang.String analyticsAccountLink, com.google.api.services.marketingplatformadmin.v1alpha.model.SetPropertyServiceLevelRequest content) { + super(GoogleMarketingPlatformAdminAPI.this, "POST", REST_PATH, content, com.google.api.services.marketingplatformadmin.v1alpha.model.SetPropertyServiceLevelResponse.class); + this.analyticsAccountLink = com.google.api.client.util.Preconditions.checkNotNull(analyticsAccountLink, "Required parameter analyticsAccountLink must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ANALYTICS_ACCOUNT_LINK_PATTERN.matcher(analyticsAccountLink).matches(), + "Parameter analyticsAccountLink must conform to the pattern " + + "^organizations/[^/]+/analyticsAccountLinks/[^/]+$"); + } + } + + @Override + public SetPropertyServiceLevel set$Xgafv(java.lang.String $Xgafv) { + return (SetPropertyServiceLevel) super.set$Xgafv($Xgafv); + } + + @Override + public SetPropertyServiceLevel setAccessToken(java.lang.String accessToken) { + return (SetPropertyServiceLevel) super.setAccessToken(accessToken); + } + + @Override + public SetPropertyServiceLevel setAlt(java.lang.String alt) { + return (SetPropertyServiceLevel) super.setAlt(alt); + } + + @Override + public SetPropertyServiceLevel setCallback(java.lang.String callback) { + return (SetPropertyServiceLevel) super.setCallback(callback); + } + + @Override + public SetPropertyServiceLevel setFields(java.lang.String fields) { + return (SetPropertyServiceLevel) super.setFields(fields); + } + + @Override + public SetPropertyServiceLevel setKey(java.lang.String key) { + return (SetPropertyServiceLevel) super.setKey(key); + } + + @Override + public SetPropertyServiceLevel setOauthToken(java.lang.String oauthToken) { + return (SetPropertyServiceLevel) super.setOauthToken(oauthToken); + } + + @Override + public SetPropertyServiceLevel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetPropertyServiceLevel) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetPropertyServiceLevel setQuotaUser(java.lang.String quotaUser) { + return (SetPropertyServiceLevel) super.setQuotaUser(quotaUser); + } + + @Override + public SetPropertyServiceLevel setUploadType(java.lang.String uploadType) { + return (SetPropertyServiceLevel) super.setUploadType(uploadType); + } + + @Override + public SetPropertyServiceLevel setUploadProtocol(java.lang.String uploadProtocol) { + return (SetPropertyServiceLevel) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent AnalyticsAccountLink scope where this property is in. Format: + * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + */ + @com.google.api.client.util.Key + private java.lang.String analyticsAccountLink; + + /** Required. The parent AnalyticsAccountLink scope where this property is in. Format: + organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + */ + public java.lang.String getAnalyticsAccountLink() { + return analyticsAccountLink; + } + + /** + * Required. The parent AnalyticsAccountLink scope where this property is in. Format: + * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} + */ + public SetPropertyServiceLevel setAnalyticsAccountLink(java.lang.String analyticsAccountLink) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ANALYTICS_ACCOUNT_LINK_PATTERN.matcher(analyticsAccountLink).matches(), + "Parameter analyticsAccountLink must conform to the pattern " + + "^organizations/[^/]+/analyticsAccountLinks/[^/]+$"); + } + this.analyticsAccountLink = analyticsAccountLink; + return this; + } + + @Override + public SetPropertyServiceLevel set(String parameterName, Object value) { + return (SetPropertyServiceLevel) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the UserGroups collection. + * + *The typical use is:
+ *
+ * {@code GoogleMarketingPlatformAdminAPI marketingplatformadmin = new GoogleMarketingPlatformAdminAPI(...);}
+ * {@code GoogleMarketingPlatformAdminAPI.UserGroups.List request = marketingplatformadmin.userGroups().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public UserGroups userGroups() {
+ return new UserGroups();
+ }
+
+ /**
+ * The "userGroups" collection of methods.
+ */
+ public class UserGroups {
+
+ /**
+ * Creates a user group in the specified GMP organization.
+ *
+ * Create a request for the method "userGroups.create".
+ *
+ * This request holds the parameters needed by the marketingplatformadmin server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent resource where this UserGroup will be created. Format: organizations/{org_id}
+ * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends GoogleMarketingPlatformAdminAPIRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource where this UserGroup will be created. Format: organizations/{org_id} + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup content) { + super(GoogleMarketingPlatformAdminAPI.this, "POST", REST_PATH, content, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this UserGroup will be created. Format: + * organizations/{org_id} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this UserGroup will be created. Format: organizations/{org_id} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this UserGroup will be created. Format: + * organizations/{org_id} + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a user group in the specified GMP organization. + * + * Create a request for the method "userGroups.delete". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the user group to delete. Format: + * organizations/{org_id}/userGroups/{user_group_id} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends GoogleMarketingPlatformAdminAPIRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the user group to delete. Format: + * organizations/{org_id}/userGroups/{user_group_id} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(GoogleMarketingPlatformAdminAPI.this, "DELETE", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the user group to delete. Format: + * organizations/{org_id}/userGroups/{user_group_id} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the user group to delete. Format: + organizations/{org_id}/userGroups/{user_group_id} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the user group to delete. Format: + * organizations/{org_id}/userGroups/{user_group_id} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Looks up a single user group. + * + * Create a request for the method "userGroups.get". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the UserGroup to retrieve. Format: + * organizations/{org_id}/userGroups/{user_group_id} + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends GoogleMarketingPlatformAdminAPIRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the UserGroup to retrieve. Format: + * organizations/{org_id}/userGroups/{user_group_id} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(GoogleMarketingPlatformAdminAPI.this, "GET", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the UserGroup to retrieve. Format: + * organizations/{org_id}/userGroups/{user_group_id} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the UserGroup to retrieve. Format: + organizations/{org_id}/userGroups/{user_group_id} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the UserGroup to retrieve. Format: + * organizations/{org_id}/userGroups/{user_group_id} + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns a list of user groups in the specified GMP organization. + * + * Create a request for the method "userGroups.list". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent org where this UserGroup will be listed. Format: organizations/{org_id} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends GoogleMarketingPlatformAdminAPIRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent org where this UserGroup will be listed. Format: organizations/{org_id} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(GoogleMarketingPlatformAdminAPI.this, "GET", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.ListUserGroupsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent org where this UserGroup will be listed. Format: + * organizations/{org_id} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent org where this UserGroup will be listed. Format: organizations/{org_id} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent org where this UserGroup will be listed. Format: + * organizations/{org_id} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The maximum number of user groups to return in one call. The service may return + * fewer than this value. If unspecified, at most 50 user groups will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of user groups to return in one call. The service may return fewer + than this value. If unspecified, at most 50 user groups will be returned. The maximum value is + 1000; values above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of user groups to return in one call. The service may return + * fewer than this value. If unspecified, at most 50 user groups will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous ListUserGroups call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListUserGroups` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous ListUserGroups call. Provide this to retrieve the + subsequent page. When paginating, all other parameters provided to `ListUserGroups` must match the + call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous ListUserGroups call. Provide this to + * retrieve the subsequent page. When paginating, all other parameters provided to + * `ListUserGroups` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a user group in the specified GMP organization. + * + * Create a request for the method "userGroups.patch". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Resource name of this UserGroup. Format: + * organizations/{org_id}/userGroups/{user_group_id} Example: + * "organizations/123abc/userGroups/456def" + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends GoogleMarketingPlatformAdminAPIRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. Resource name of this UserGroup. Format: + * organizations/{org_id}/userGroups/{user_group_id} Example: + * "organizations/123abc/userGroups/456def" + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup content) { + super(GoogleMarketingPlatformAdminAPI.this, "PATCH", REST_PATH, content, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroup.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Resource name of this UserGroup. Format: + * organizations/{org_id}/userGroups/{user_group_id} Example: + * "organizations/123abc/userGroups/456def" + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Resource name of this UserGroup. Format: + organizations/{org_id}/userGroups/{user_group_id} Example: "organizations/123abc/userGroups/456def" + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of this UserGroup. Format: + * organizations/{org_id}/userGroups/{user_group_id} Example: + * "organizations/123abc/userGroups/456def" + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Required. The list of fields to update. Field names must be in snake case (for example, + * "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use + * one path with the string "*" to match all fields. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to update. Field names must be in snake case (for example, + "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path + with the string "*" to match all fields. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Required. The list of fields to update. Field names must be in snake case (for example, + * "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use + * one path with the string "*" to match all fields. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Members collection. + * + *The typical use is:
+ *
+ * {@code GoogleMarketingPlatformAdminAPI marketingplatformadmin = new GoogleMarketingPlatformAdminAPI(...);}
+ * {@code GoogleMarketingPlatformAdminAPI.Members.List request = marketingplatformadmin.members().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public Members members() {
+ return new Members();
+ }
+
+ /**
+ * The "members" collection of methods.
+ */
+ public class Members {
+
+ /**
+ * Adds a member to the specified GMP user group.
+ *
+ * Create a request for the method "members.create".
+ *
+ * This request holds the parameters needed by the marketingplatformadmin server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent resource where this UserGroupMember will be created. Format:
+ * organizations/{org_id}/userGroups/{user_group_id}
+ * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends GoogleMarketingPlatformAdminAPIRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource where this UserGroupMember will be created. Format: + * organizations/{org_id}/userGroups/{user_group_id} + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember content) { + super(GoogleMarketingPlatformAdminAPI.this, "POST", REST_PATH, content, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this UserGroupMember will be created. Format: + * organizations/{org_id}/userGroups/{user_group_id} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this UserGroupMember will be created. Format: + organizations/{org_id}/userGroups/{user_group_id} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this UserGroupMember will be created. Format: + * organizations/{org_id}/userGroups/{user_group_id} + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a member in the specified GMP user group. + * + * Create a request for the method "members.delete". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the user group member to delete. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends GoogleMarketingPlatformAdminAPIRequest{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the user group member to delete. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(GoogleMarketingPlatformAdminAPI.this, "DELETE", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+/members/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the user group member to delete. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the user group member to delete. Format: + organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the user group member to delete. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+/members/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Looks up a single user group member. + * + * Create a request for the method "members.get". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the user group member to retrieve. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends GoogleMarketingPlatformAdminAPIRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the user group member to retrieve. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(GoogleMarketingPlatformAdminAPI.this, "GET", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+/members/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the user group member to retrieve. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the user group member to retrieve. Format: + organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the user group member to retrieve. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+/members/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Returns a list of members in the specified user group. + * + * Create a request for the method "members.list". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent user group where this UserGroupMember will be listed. Format: + * organizations/{org_id}/userGroups/{user_group_id} + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends GoogleMarketingPlatformAdminAPIRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent user group where this UserGroupMember will be listed. Format: + * organizations/{org_id}/userGroups/{user_group_id} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(GoogleMarketingPlatformAdminAPI.this, "GET", REST_PATH, null, com.google.api.services.marketingplatformadmin.v1alpha.model.ListUserGroupMembersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent user group where this UserGroupMember will be listed. Format: + * organizations/{org_id}/userGroups/{user_group_id} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent user group where this UserGroupMember will be listed. Format: + organizations/{org_id}/userGroups/{user_group_id} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent user group where this UserGroupMember will be listed. Format: + * organizations/{org_id}/userGroups/{user_group_id} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The maximum number of user group members to return in one call. The service + * may return fewer than this value. If unspecified, at most 50 user group members will be + * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of user group members to return in one call. The service may return + fewer than this value. If unspecified, at most 50 user group members will be returned. The maximum + value is 1000; values above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of user group members to return in one call. The service + * may return fewer than this value. If unspecified, at most 50 user group members will be + * returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous ListUserGroupMembers call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListUserGroupMembers` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous ListUserGroupMembers call. Provide this to + retrieve the subsequent page. When paginating, all other parameters provided to + `ListUserGroupMembers` must match the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous ListUserGroupMembers call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListUserGroupMembers` must match the call that provided the page token. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a member in the specified GMP user group. + * + * Create a request for the method "members.patch". + * + * This request holds the parameters needed by the marketingplatformadmin server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of this UserGroupMember. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: + * "organizations/123abc/userGroups/456def/members/789ghi" + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends GoogleMarketingPlatformAdminAPIRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Identifier. The resource name of this UserGroupMember. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: + * "organizations/123abc/userGroups/456def/members/789ghi" + * @param content the {@link com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember content) { + super(GoogleMarketingPlatformAdminAPI.this, "PATCH", REST_PATH, content, com.google.api.services.marketingplatformadmin.v1alpha.model.UserGroupMember.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+/members/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The resource name of this UserGroupMember. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: + * "organizations/123abc/userGroups/456def/members/789ghi" + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of this UserGroupMember. Format: + organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: + "organizations/123abc/userGroups/456def/members/789ghi" + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of this UserGroupMember. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: + * "organizations/123abc/userGroups/456def/members/789ghi" + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/userGroups/[^/]+/members/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Required. The list of fields to update. Field names must be in snake case (for example, + * "field_to_update"). Omitted fields will not be updated. To replace the entire entity, + * use one path with the string "*" to match all fields. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to update. Field names must be in snake case (for example, + "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path + with the string "*" to match all fields. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Required. The list of fields to update. Field names must be in snake case (for example, + * "field_to_update"). Omitted fields will not be updated. To replace the entire entity, + * use one path with the string "*" to match all fields. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + } } /** diff --git a/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/com/google/api/services/marketingplatformadmin/v1alpha/model/AdminAccessBinding.java b/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/com/google/api/services/marketingplatformadmin/v1alpha/model/AdminAccessBinding.java new file mode 100644 index 00000000000..34ec9ef2d7a --- /dev/null +++ b/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/com/google/api/services/marketingplatformadmin/v1alpha/model/AdminAccessBinding.java @@ -0,0 +1,151 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.marketingplatformadmin.v1alpha.model; + +/** + * A resource message representing a binding to a set of roles. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Marketing Platform Admin API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AdminAccessBinding extends com.google.api.client.json.GenericJson { + + /** + * Identifier. The resource name of this AdminAccessBinding. Format: + * organizations/{org_id}/adminAccessBindings/{admin_access_binding_id} Example: + * "organizations/123abc/adminAccessBindings/456def" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. A list of roles granted to the parent organization. USER_ADMIN_ROLE and + * BILLING_ADMIN_ROLE will be automatically added if ORG_ADMIN_ROLE is assigned. No roles will be + * assigned if no roles are specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Marketing Platform Admin API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAdminAccessBindingsResponse extends com.google.api.client.json.GenericJson { + + /** + * Admin Access Bindings in the organization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Marketing Platform Admin API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListUserGroupMembersResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * User group members in the user group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Marketing Platform Admin API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListUserGroupsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * User groups in the organization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Marketing Platform Admin API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class UserGroup extends com.google.api.client.json.GenericJson { + + /** + * Optional. The description of the user group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The human-readable name for the user group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. Resource name of this UserGroup. Format: + * organizations/{org_id}/userGroups/{user_group_id} Example: + * "organizations/123abc/userGroups/456def" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The description of the user group. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the user group. + * @param description description or {@code null} for none + */ + public UserGroup setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The human-readable name for the user group. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The human-readable name for the user group. + * @param displayName displayName or {@code null} for none + */ + public UserGroup setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. Resource name of this UserGroup. Format: + * organizations/{org_id}/userGroups/{user_group_id} Example: + * "organizations/123abc/userGroups/456def" + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of this UserGroup. Format: + * organizations/{org_id}/userGroups/{user_group_id} Example: + * "organizations/123abc/userGroups/456def" + * @param name name or {@code null} for none + */ + public UserGroup setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public UserGroup set(String fieldName, Object value) { + return (UserGroup) super.set(fieldName, value); + } + + @Override + public UserGroup clone() { + return (UserGroup) super.clone(); + } + +} diff --git a/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/com/google/api/services/marketingplatformadmin/v1alpha/model/UserGroupMember.java b/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/com/google/api/services/marketingplatformadmin/v1alpha/model/UserGroupMember.java new file mode 100644 index 00000000000..fc2e3f9536d --- /dev/null +++ b/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/com/google/api/services/marketingplatformadmin/v1alpha/model/UserGroupMember.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.marketingplatformadmin.v1alpha.model; + +/** + * A resource message representing a member of a user group. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Google Marketing Platform Admin API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class UserGroupMember extends com.google.api.client.json.GenericJson { + + /** + * Optional. The role of the member in the user group. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String membershipRole; + + /** + * Identifier. The resource name of this UserGroupMember. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: + * "organizations/123abc/userGroups/456def/members/789ghi" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Email address of the user member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userEmail; + + /** + * User group resource name of the group member. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userGroup; + + /** + * Optional. The role of the member in the user group. + * @return value or {@code null} for none + */ + public java.lang.String getMembershipRole() { + return membershipRole; + } + + /** + * Optional. The role of the member in the user group. + * @param membershipRole membershipRole or {@code null} for none + */ + public UserGroupMember setMembershipRole(java.lang.String membershipRole) { + this.membershipRole = membershipRole; + return this; + } + + /** + * Identifier. The resource name of this UserGroupMember. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: + * "organizations/123abc/userGroups/456def/members/789ghi" + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of this UserGroupMember. Format: + * organizations/{org_id}/userGroups/{user_group_id}/members/{member_id} Example: + * "organizations/123abc/userGroups/456def/members/789ghi" + * @param name name or {@code null} for none + */ + public UserGroupMember setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Email address of the user member. + * @return value or {@code null} for none + */ + public java.lang.String getUserEmail() { + return userEmail; + } + + /** + * Email address of the user member. + * @param userEmail userEmail or {@code null} for none + */ + public UserGroupMember setUserEmail(java.lang.String userEmail) { + this.userEmail = userEmail; + return this; + } + + /** + * User group resource name of the group member. + * @return value or {@code null} for none + */ + public java.lang.String getUserGroup() { + return userGroup; + } + + /** + * User group resource name of the group member. + * @param userGroup userGroup or {@code null} for none + */ + public UserGroupMember setUserGroup(java.lang.String userGroup) { + this.userGroup = userGroup; + return this; + } + + @Override + public UserGroupMember set(String fieldName, Object value) { + return (UserGroupMember) super.set(fieldName, value); + } + + @Override + public UserGroupMember clone() { + return (UserGroupMember) super.clone(); + } + +} diff --git a/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/pom.xml b/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/pom.xml index 7c6af497fb2..31fbb7651fa 100644 --- a/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-marketingplatformadmin/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@