@@ -2074,6 +2074,276 @@ public Patch set(String parameterName, Object value) {
20742074 return (Patch) super.set(parameterName, value);
20752075 }
20762076 }
2077+ /**
2078+ * Query PSC propagation status the status of a Network Connectivity Center hub.
2079+ *
2080+ * Create a request for the method "hubs.queryStatus".
2081+ *
2082+ * This request holds the parameters needed by the networkconnectivity server. After setting any
2083+ * optional parameters, call the {@link QueryStatus#execute()} method to invoke the remote
2084+ * operation.
2085+ *
2086+ * @param name Required. The name of the hub.
2087+ * @return the request
2088+ */
2089+ public QueryStatus queryStatus(java.lang.String name) throws java.io.IOException {
2090+ QueryStatus result = new QueryStatus(name);
2091+ initialize(result);
2092+ return result;
2093+ }
2094+
2095+ public class QueryStatus extends NetworkconnectivityRequest<com.google.api.services.networkconnectivity.v1.model.QueryHubStatusResponse> {
2096+
2097+ private static final String REST_PATH = "v1/{+name}:queryStatus";
2098+
2099+ private final java.util.regex.Pattern NAME_PATTERN =
2100+ java.util.regex.Pattern.compile("^projects/[^/]+/locations/global/hubs/[^/]+$");
2101+
2102+ /**
2103+ * Query PSC propagation status the status of a Network Connectivity Center hub.
2104+ *
2105+ * Create a request for the method "hubs.queryStatus".
2106+ *
2107+ * This request holds the parameters needed by the the networkconnectivity server. After setting
2108+ * any optional parameters, call the {@link QueryStatus#execute()} method to invoke the remote
2109+ * operation. <p> {@link
2110+ * QueryStatus#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
2111+ * must be called to initialize this instance immediately after invoking the constructor. </p>
2112+ *
2113+ * @param name Required. The name of the hub.
2114+ * @since 1.13
2115+ */
2116+ protected QueryStatus(java.lang.String name) {
2117+ super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.QueryHubStatusResponse.class);
2118+ this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2119+ if (!getSuppressPatternChecks()) {
2120+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2121+ "Parameter name must conform to the pattern " +
2122+ "^projects/[^/]+/locations/global/hubs/[^/]+$");
2123+ }
2124+ }
2125+
2126+ @Override
2127+ public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
2128+ return super.executeUsingHead();
2129+ }
2130+
2131+ @Override
2132+ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
2133+ return super.buildHttpRequestUsingHead();
2134+ }
2135+
2136+ @Override
2137+ public QueryStatus set$Xgafv(java.lang.String $Xgafv) {
2138+ return (QueryStatus) super.set$Xgafv($Xgafv);
2139+ }
2140+
2141+ @Override
2142+ public QueryStatus setAccessToken(java.lang.String accessToken) {
2143+ return (QueryStatus) super.setAccessToken(accessToken);
2144+ }
2145+
2146+ @Override
2147+ public QueryStatus setAlt(java.lang.String alt) {
2148+ return (QueryStatus) super.setAlt(alt);
2149+ }
2150+
2151+ @Override
2152+ public QueryStatus setCallback(java.lang.String callback) {
2153+ return (QueryStatus) super.setCallback(callback);
2154+ }
2155+
2156+ @Override
2157+ public QueryStatus setFields(java.lang.String fields) {
2158+ return (QueryStatus) super.setFields(fields);
2159+ }
2160+
2161+ @Override
2162+ public QueryStatus setKey(java.lang.String key) {
2163+ return (QueryStatus) super.setKey(key);
2164+ }
2165+
2166+ @Override
2167+ public QueryStatus setOauthToken(java.lang.String oauthToken) {
2168+ return (QueryStatus) super.setOauthToken(oauthToken);
2169+ }
2170+
2171+ @Override
2172+ public QueryStatus setPrettyPrint(java.lang.Boolean prettyPrint) {
2173+ return (QueryStatus) super.setPrettyPrint(prettyPrint);
2174+ }
2175+
2176+ @Override
2177+ public QueryStatus setQuotaUser(java.lang.String quotaUser) {
2178+ return (QueryStatus) super.setQuotaUser(quotaUser);
2179+ }
2180+
2181+ @Override
2182+ public QueryStatus setUploadType(java.lang.String uploadType) {
2183+ return (QueryStatus) super.setUploadType(uploadType);
2184+ }
2185+
2186+ @Override
2187+ public QueryStatus setUploadProtocol(java.lang.String uploadProtocol) {
2188+ return (QueryStatus) super.setUploadProtocol(uploadProtocol);
2189+ }
2190+
2191+ /** Required. The name of the hub. */
2192+ @com.google.api.client.util.Key
2193+ private java.lang.String name;
2194+
2195+ /** Required. The name of the hub.
2196+ */
2197+ public java.lang.String getName() {
2198+ return name;
2199+ }
2200+
2201+ /** Required. The name of the hub. */
2202+ public QueryStatus setName(java.lang.String name) {
2203+ if (!getSuppressPatternChecks()) {
2204+ com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2205+ "Parameter name must conform to the pattern " +
2206+ "^projects/[^/]+/locations/global/hubs/[^/]+$");
2207+ }
2208+ this.name = name;
2209+ return this;
2210+ }
2211+
2212+ /**
2213+ * Optional. An expression that filters the list of results. The filter can be used to
2214+ * filter the results by the following fields: * psc_propagation_status.source_spoke *
2215+ * psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule *
2216+ * psc_propagation_status.target_spoke * psc_propagation_status.target_group *
2217+ * psc_propagation_status.code * psc_propagation_status.message
2218+ */
2219+ @com.google.api.client.util.Key
2220+ private java.lang.String filter;
2221+
2222+ /** Optional. An expression that filters the list of results. The filter can be used to filter the
2223+ results by the following fields: * psc_propagation_status.source_spoke *
2224+ psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule *
2225+ psc_propagation_status.target_spoke * psc_propagation_status.target_group *
2226+ psc_propagation_status.code * psc_propagation_status.message
2227+ */
2228+ public java.lang.String getFilter() {
2229+ return filter;
2230+ }
2231+
2232+ /**
2233+ * Optional. An expression that filters the list of results. The filter can be used to
2234+ * filter the results by the following fields: * psc_propagation_status.source_spoke *
2235+ * psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule *
2236+ * psc_propagation_status.target_spoke * psc_propagation_status.target_group *
2237+ * psc_propagation_status.code * psc_propagation_status.message
2238+ */
2239+ public QueryStatus setFilter(java.lang.String filter) {
2240+ this.filter = filter;
2241+ return this;
2242+ }
2243+
2244+ /**
2245+ * Optional. A field that counts are grouped by. A comma-separated list of any of these
2246+ * fields: * psc_propagation_status.source_spoke * psc_propagation_status.source_group *
2247+ * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke *
2248+ * psc_propagation_status.target_group * psc_propagation_status.code
2249+ */
2250+ @com.google.api.client.util.Key
2251+ private java.lang.String groupBy;
2252+
2253+ /** Optional. A field that counts are grouped by. A comma-separated list of any of these fields: *
2254+ psc_propagation_status.source_spoke * psc_propagation_status.source_group *
2255+ psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke *
2256+ psc_propagation_status.target_group * psc_propagation_status.code
2257+ */
2258+ public java.lang.String getGroupBy() {
2259+ return groupBy;
2260+ }
2261+
2262+ /**
2263+ * Optional. A field that counts are grouped by. A comma-separated list of any of these
2264+ * fields: * psc_propagation_status.source_spoke * psc_propagation_status.source_group *
2265+ * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke *
2266+ * psc_propagation_status.target_group * psc_propagation_status.code
2267+ */
2268+ public QueryStatus setGroupBy(java.lang.String groupBy) {
2269+ this.groupBy = groupBy;
2270+ return this;
2271+ }
2272+
2273+ /**
2274+ * Optional. Sort the results in the ascending order by specific fields returned in the
2275+ * response. A comma-separated list of any of these fields: *
2276+ * psc_propagation_status.source_spoke * psc_propagation_status.source_group *
2277+ * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke *
2278+ * psc_propagation_status.target_group * psc_propagation_status.code If `group_by` is
2279+ * set, the value of the `order_by` field must be the same as or a subset of the
2280+ * `group_by` field.
2281+ */
2282+ @com.google.api.client.util.Key
2283+ private java.lang.String orderBy;
2284+
2285+ /** Optional. Sort the results in the ascending order by specific fields returned in the response. A
2286+ comma-separated list of any of these fields: * psc_propagation_status.source_spoke *
2287+ psc_propagation_status.source_group * psc_propagation_status.source_forwarding_rule *
2288+ psc_propagation_status.target_spoke * psc_propagation_status.target_group *
2289+ psc_propagation_status.code If `group_by` is set, the value of the `order_by` field must be the
2290+ same as or a subset of the `group_by` field.
2291+ */
2292+ public java.lang.String getOrderBy() {
2293+ return orderBy;
2294+ }
2295+
2296+ /**
2297+ * Optional. Sort the results in the ascending order by specific fields returned in the
2298+ * response. A comma-separated list of any of these fields: *
2299+ * psc_propagation_status.source_spoke * psc_propagation_status.source_group *
2300+ * psc_propagation_status.source_forwarding_rule * psc_propagation_status.target_spoke *
2301+ * psc_propagation_status.target_group * psc_propagation_status.code If `group_by` is
2302+ * set, the value of the `order_by` field must be the same as or a subset of the
2303+ * `group_by` field.
2304+ */
2305+ public QueryStatus setOrderBy(java.lang.String orderBy) {
2306+ this.orderBy = orderBy;
2307+ return this;
2308+ }
2309+
2310+ /** Optional. The maximum number of results to return per page. */
2311+ @com.google.api.client.util.Key
2312+ private java.lang.Integer pageSize;
2313+
2314+ /** Optional. The maximum number of results to return per page.
2315+ */
2316+ public java.lang.Integer getPageSize() {
2317+ return pageSize;
2318+ }
2319+
2320+ /** Optional. The maximum number of results to return per page. */
2321+ public QueryStatus setPageSize(java.lang.Integer pageSize) {
2322+ this.pageSize = pageSize;
2323+ return this;
2324+ }
2325+
2326+ /** Optional. The page token. */
2327+ @com.google.api.client.util.Key
2328+ private java.lang.String pageToken;
2329+
2330+ /** Optional. The page token.
2331+ */
2332+ public java.lang.String getPageToken() {
2333+ return pageToken;
2334+ }
2335+
2336+ /** Optional. The page token. */
2337+ public QueryStatus setPageToken(java.lang.String pageToken) {
2338+ this.pageToken = pageToken;
2339+ return this;
2340+ }
2341+
2342+ @Override
2343+ public QueryStatus set(String parameterName, Object value) {
2344+ return (QueryStatus) super.set(parameterName, value);
2345+ }
2346+ }
20772347 /**
20782348 * Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was
20792349 * previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer able to
0 commit comments